package priv.abadstring.study.graphql;

/**
 * User
 *
 * @author aBadString
 * @date 2021-06-16 21:41:06
 */
public class User {
    private Long id;
    private String name;
    private Integer age;
    private Card card;


    /**
     * 创建建造器对象
     */
    public static User building() {
        return new User();
    }
    public User id(Long id) {
        this.id = id;
        return this;
    }
    public User name(String name) {
        this.name = name;
        return this;
    }
    public User age(Integer age) {
        this.age = age;
        return this;
    }
    public User card(Card card) {
        this.card = card;
        return this;
    }

    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }
    public Card getCard() {
        return card;
    }

    public void setCard(Card card) {
        this.card = card;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
